import { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: () => import('src/layouts/main-layout.vue'),
    children: [
      /**
       * 车载终端
       */
      { path: '', component: () => import('src/pages/terminal-crane1/index.vue') },

      { path: '/terminal-crane', component: () => import('src/pages/terminal-crane/index.vue') },

      { path: '/info-alarm', component: () => import('src/pages/info-alarm/index.vue') },

      { path: '/yard-crane', component: () => import('src/pages/yard-crane/index.vue') },

      { path: '/yard-trolley', name: 'YardTrolley', component: () => import('pages/yard-trolley/trolleyYl.vue') },

      { path: '/wms-login', component: () => import('src/pages/wms-login/index.vue') },

      {
        path: '/yard-plan',
        name: 'YardPlan',
        component: () => import('pages/yard-plan/yardPlan.vue')
      }
    ],
  },

  /**
   * 未授权
   */
  {
    path: '/noauth',
    component: () => import('pages/_sys/error-401.vue'),
  },

  /**
   * Always leave this at the end
   */
  {
    path: '/:catchAll(.*)*',
    component: () => import('pages/_sys/error-404.vue'),
  },
];

export default routes;
